<template>
	<view class="container">
		<web-view class="webView" :src="url"></web-view>
	</view>
</template>

<script>
	import customNavigation from "@/components/custom-navigation.vue"
	export default {
		components:{
			customNavigation
		},
		data() {
			return {
				url:"",
				token:""
			}
		},
		onLoad(options) {
			this.token=uni.getStorageSync("token")
			if(decodeURIComponent(options.url).indexOf("?")!=-1){
				this.url=decodeURIComponent(options.url)+"&token="+this.token
			}else{
				this.url=decodeURIComponent(options.url)+"?token="+this.token
			}
		}
	}
</script>

<style lang="less">
.webView{
	margin-top: 11vh;
}
</style>
